module.exports = {
  
    type: 'list',
    async fetch({    page ,args}) {
  
        let resp = await $http.get(`http://app-cdn.jjwxc.net:80/bookstore/getTop?channel=${args.fl}&offset=${page||1}&limit=10&versionCode=126`)
        let list = resp.data
        let items = list.map(data => {
            return {
                style: 'icon',
                id: data.novelId,
                time: data.chapterdate,
                thumb: data.cover,
                title: data.novelName,
                style: 'simple',
                link: 'http://app-cdn.jjwxc.net/androidapi/chapterContent?novelId=3595501&chapterId=1',
                author: {
                    name: data.authorName
                },
                summary: data.novelIntroShort,

                route: $route('types/summary', {
                    id: data.novelId,
                    thumb:data.cover
                })
            }
        })
      return {
            nextPage: page + 10,
            items
        }
    }




}